package com.shg.bean;

import java.io.Serializable;

/**
 * 频道
 * @author chengyi.feng
 *
 */
public class Channel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//频道编号
	private Integer id;
	//频道名称
	private String name;
	//频道所在位置
	private String position;
	//频道生成模板
	private String mould;
	//静态html页面
	private String html;
	//url
	private String url;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getMould() {
		return mould;
	}
	public void setMould(String mould) {
		this.mould = mould;
	}
	public String getHtml() {
		return html;
	}
	public void setHtml(String html) {
		this.html = html;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Channel other = (Channel) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}

